package com.fjec.common;

import java.util.Arrays;
import java.util.List;

public class Const {

    /**
     * log traceId
     */
    public static final String TRACE_ID_KEY = "traceId";
    /**
     * 上传文件类型为图片的
     */
    public final static List<Integer> FILE_TYPE_IMAGE = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 101, 102, 103, 104);
    /**
     * 保存在公开OSS
     */
    public final static List<Integer> STORE_BIZ_TYPE = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
    /**
     * 敏感图片，保存在私有OSS
     */
    public final static List<Integer> SECRET_BIZ_TYPE = Arrays.asList(101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114);
    /**
     * 需要使用第三方接口识别数据的类型
     */
    public final static List<Integer> GET_DATA_TYPE = Arrays.asList(101, 102);
    /**
     * zookeeper生成Id工作节点根节点
     */
    public final static String ZK_DATACENTERID_AND_WORKERID_ROOT = "/FJEC/WNS";
    /**
     * zookeeper生成店铺编号根节点
     */
    public final static String ZK_SHOP_NUM_SEQ_ROOT = "/FJEC/SEQ";
    /**
     * zookeeper生成店铺编号根节点初始值
     */
    public static final String ZK_SHOP_NUM_SEQ_INIT_VAL = "1";
    /**
     * 程序类型：微信小程序
     */
    public static final int APP_TYPE_WX_SMALL_APP = 1;
    /**
     * 程序类型：运维系统
     */
    public static final int APP_TYPE_DEVOPS = 2;
    /**
     *
     */
    public static final int APP_TYPE_UNION_ID = 99;
    /**
     * Redis短信验证码缓存key
     */
    public static final String FJEC_SMS_VERIFY_CODE_KEY = "fjec:sms:verify_code:";

    /**
     * Redis Id生成种子分布式锁key
     */
    public static final String GEN_ID_LOCK_KEY = "gen_id_lock";
    /**
     * Redis Id生成种子key
     */
    public static final String DATACENTER_WORKER_KEY = "fjec:DataCenterAndWroker";

    /**
     * Redis Id种子过期时间
     */
    public static final int DATACENTER_WORKER_TIMEOUT = 1860;
    /**
     * 注册时openId锁，避免同时注册多个用户
     */
    public static final String REG_OPENID_LOCK_KEY = "reg_openId_lock:";

    /**
     * 秒杀活动礼物锁
     */
    public static final String SECKILL_LOCK_KEY = "fjec:seckill:lock:";

    /**
     * 秒杀活动礼物缓存
     */
    public static final String SECKILL_GIFT_KEY = "fjec:seckill:gifts:";

    /**
     * 数字0
     */
    public static final int NUMBER_ZERO = 0;
    /**
     * 消息队列头信息Key DataID
     */
    public static final String MQ_HEADER_DATA_ID_KEY = "mq_header_data_id";
    /**
     * 消息队列头信息Key MsgType
     */
    public static final String MQ_HEADER_MSG_TYPE_KEY = "mq_header_msg_type";
    /**
     * 采购商市场编码
     */
    public static final int MARKET_CODE_PURCHASE = 10001;
    /**
     * 农资市场编码
     */
    public static final int MARKET_CODE_MATERIAL = 10002;
    /**
     * 页面显示base64头
     */
    public static final String BASE64_IMAGE_HEADER = "data:image/jpg;base64,";

    /**
     * 银盛营业执照长期
     */
    public static final String YS_ENT_LICENSE_LONG_TERM = "99991231";

    /**
     * 直连商户申请-方杰电子商务文件名模板
     */
    public static final String YS_OFF_LINE_REG_4 = "附件四：直连商户申请-方杰电子商务-{0}.xlsx";

    /**
     * 业务权限配置表-方杰电子商务文件名模板
     */
    public static final String YS_OFF_LINE_REG_6 = "附件六：业务权限配置表-方杰电子商务-{0}.xlsx";

    /**
     * 银盛进件身份证注册次数超限
     */
    public static final String YS_REG_ACQ_CERT_USED_TIMES = "ACQ.CERT_USED_TIMES";

    /**
     * 礼物兑换申请明细excel文件名
     */
    public static final String EXCHANGE_GIFT_EXCEL_FILE_NAME = "礼物兑换申请明细-{0}.xlsx";

    /**
     * 早餐下载文件名称
     */
    public static final String BREAKFAST_EXCEL_NAME = "早餐配送信息-{0}.xlsx";

    public static boolean DO_NOT_FORGET_ME = false;

}
